package com.sporch.controller;

import com.sporch.model.EndpointProfile;
import com.sporch.service.EndpointProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: czy
 * @Date: 2019/6/4 16:15
 */
@RestController
@RequestMapping("endpointProfile")
public class EndpointProfileController {
    @Autowired
    private EndpointProfileService endpointProfileService;

    @RequestMapping("/findAll")
    public List<EndpointProfile> findAll(){
        List<EndpointProfile> all = endpointProfileService.findAll();
        return all;
    }
}
